import request from '@/utils/request'

/**
 * 获取职位列表
 * @param params 
 * @returns 
 */
export const getPositionList = (params?: any) => request.get({ url: '/adminapi/organize.position/lists', params });


/**
 * 新增职位
 * @param data 
 * @returns 
 */
export const savePosition = (data: any) => request.post({ url: '/adminapi/organize.position/save', data })


/**
 * 更新职位
 * @param data 
 * @returns 
 */
export const updatePosition = (data: any) => request.put({ url: '/adminapi/organize.position/update', data })


/**
 * 删除职位
 * @param id 
 * @returns 
 */
export const deletePosition = (id: string) => request.delete({ url: `/adminapi/organize.position/delete`, params: { id } })


